<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
<link rel="stylesheet"
	href="${pageContext.request.contextPath}/admin/css/bootstrap.min.css" />
<link rel="stylesheet"
	href="${pageContext.request.contextPath}/admin/css/bootstrap-responsive.min.css" />
<script type="text/javascript"
	src="${pageContext.request.contextPath}/js/jquery-1.11.1.js"></script>
<style type="text/css">
</style>
<script type="text/javascript">
	
</script>
</head>
<body>
	<div id="header" class="wrap" style="width: 1200px; margin: 0 auto;">
		<jsp:include page="../common/top.jsp" />
	</div>

	<div class="container">


		<table class="table table-striped with-check" style="border:none;">
			<tr>
				<td style="text-align: center;vertical-align: middle;width:200px"><c:choose>
						<c:when
							test="${(currentUser.face==null||currentUser.face=='')&&currentUser.sex=='男'}">
							<img alt=""
								src="${pageContext.request.contextPath}/images/user/user0.gif"
								style="width: 100px; height: 100px;">
						</c:when>
						<c:when
							test="${(currentUser.face==null||currentUser.face=='')&&currentUser.sex=='女'}">
							<img alt=""
								src="${pageContext.request.contextPath}/images/user/female.gif"
								style="width: 100px; height: 100px;">
						</c:when>
						<c:otherwise>
							<img alt=""
								src="${pageContext.request.contextPath}/${currentUser.face}"
								style="width: 100px; height: 100px;">
						</c:otherwise>
					</c:choose>
				</td>
				<td style="text-align: left;vertical-align: middle;width:400px">
					<p>用户名：${currentUser.nickName}--(${currentUser.id})</p>
					<p>真实姓名：${currentUser.trueName}</p>
					<p>身份：
						<c:choose>
							<c:when
								test="${fn:length(currentUser.sectionList)==0&&currentUser.type!=2 }">
								<font style="color: black;">普通用户</font>
							</c:when>
							<c:when
								test="${fn:length(currentUser.sectionList)!=0&&currentUser.type!=2 }">
								<font style="color: blue;">版主</font>
					                       【<c:forEach
									items="${currentUser.sectionList }" var="section">
					            ${section.name }；
					         </c:forEach>】
					    </c:when>
							<c:otherwise>
								<font style="color: red;">管理员</font>
							</c:otherwise>
						</c:choose>
					</p></td>


				<td style="text-align:right; vertical-align: middle;"><a
					class="btn btn-info" type="button" href="User_preSave.action">修改</a>&nbsp;&nbsp;
				</td>

			</tr>


			<tr style="text-align: center;vertical-align: middle;" >
				<td rows=3>${currentUser.password}</td>
			</tr>
			<tr style="text-align: center;vertical-align: middle;">
				<td>性别：${currentUser.sex}</td>
			</tr>
			<tr style="text-align: center;vertical-align: middle;">
				<td>邮箱：${currentUser.email}</td>
			</tr>
			<tr style="text-align: center;vertical-align: middle;">
				<td>手机：${currentUser.mobile}</td>
			</tr>
			<tr style="text-align: center;vertical-align: middle;">
				<td rows=3>注册时间：${currentUser.regTime}</td>
			</tr>

		</table>


		
	</div>
	<div id="footer" style="width: 1200px; margin: 0 auto;">
		<jsp:include page="../common/footer.jsp" />
	</div>
</body>
</html>